package com.bookmanger.server.service;

import com.bookmanger.common.result.Result;
import com.bookmanger.pojo.DTO.CheckInfoDTO;
import com.bookmanger.pojo.Entity.AdminEntity;
import com.bookmanger.pojo.Entity.Reader;
import org.springframework.web.bind.annotation.RestController;

public interface SysAdminService {
    Result addAdmin(AdminEntity adminEntity);

    void checkInfo(CheckInfoDTO checkInfoDTOAccount);

    Result deleteAdmin(Integer id);

    Result updateAdminInfo(AdminEntity adminEntity);

    Result findAdminById(Integer id);

    Result findAllAdmin();

    Result findAdminByInfo(String info);

    // 分页查询所有管理员
    Result findAllAdmin(Integer page, Integer pageSize);

    Result findAllReader();

    // 分页查询所有读者
    Result findAllReader(Integer page, Integer pageSize);

    Result findReaderById(Integer id);

    Result deleteReader(Integer id);

    Result updateReaderInfoByAdmin(Reader reader);

    Result aggreeRegister(Integer id, Integer type);

    Result findReaderByInfo(String info);

    Result disaggressRegister(Integer id,String reason);
}